﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserList.aspx.cs" Inherits="Admin.User.UserList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="~/UserControls/PageControl.ascx" TagName="PageControl" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>用户列表</title>
    <link href="/Admin/Css/rightbar.css?FileVersion=<%=FileVersion %>" rel="stylesheet"
        type="text/css" />
    <script src="/Admin/Scripts/jquery-1.4.1.min.js?FileVersion=<%=FileVersion %>" type="text/javascript"></script>
</head>
<body id="wallet">
    <div class="warp">
        <div class="topnav">
            <ul>
                <li><a href="javascript:void(0);" style="cursor: default;" class="on_nav"><span>用户管理</span></a></li>
                <%if (HasPower("AddUser.aspx"))
                  { %>
                <li><a href="AddUser.aspx"><span>用户登记</span></a></li><%} %>
            </ul>
        </div>
        <div class="tab mt15">
            <ul>
                <li class="in_on"><strong>用户列表</strong></li>
            </ul>
        </div>
        <div class="cont" style="padding: 0; width: 678px;">
            <form id="searchForm" name="searchForm" action="UserList.aspx">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="stb01">
                <tr>
                    <td style="padding-top: 0; padding-left: 25px;" width="200" height="34" align="left"
                        valign="middle" bgcolor="#F3FBFE">
                        用户名：<input type="text" name="txtUserName" id="txtUserName" value="<%=userName %>"
                            maxlength="20" />
                    </td>
                    <td style="padding-top: 0; padding-left: 15px;" width="200" height="34" align="left"
                        valign="middle" bgcolor="#F3FBFE">
                        姓名：<input type="text" name="txtName" id="Text1" value="<%=name %>" maxlength="20" />
                    </td>
                    <td style="padding-top: 0; padding-right: 20px;" valign="middle" align="right" bgcolor="#F3FBFE">
                        <div class="pl10">
                            <input name="imageField" id="Button1" type="submit" value="搜 索" /></div>
                    </td>
                </tr>
            </table>
            </form>
            <table width="676" border="0" cellspacing="0" cellpadding="0" class="maintb" style="border-top: 0;"
                id="tbDataList">
                <asp:Repeater ID="rptDataList" runat="server">
                    <HeaderTemplate>
                        <tr>
                            <th width="90" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                用户名
                            </th>
                            <th width="90" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                姓名
                            </th>
                            <th width="90" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                岗位
                            </th>
                            <th width="120" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                部门
                            </th>
                            <th width="150" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                邮箱
                            </th>
                            <th height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                修改
                            </th>
                            <th height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                删除
                            </th>
                        </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td align="center">
                                <%#Eval("UserName")%>
                            </td>
                            <td align="center">
                                <%#Eval("sName")%>
                            </td>
                            <td align="center">
                                <%#Eval("gangweiname")%>
                            </td>
                            <td align="center">
                                <%#Eval("departmentname")%>
                            </td>
                            <td align="center">
                                <%#Eval("eMail")%>
                            </td>
                            <td align="center">
                                <a href='ModifyUser.aspx?ID=<%#Eval("UserId") %>'>
                                    <img src="/Admin/Images/bluestyle/edit.gif" alt="修改" width="15" height="15" border="0" /></a>
                            </td>
                            <td align="center">
                                <a href='?action=stop&ID=<%#Eval("UserId") %>&pageurl=<%=Server.UrlEncode(pageUrl) %>'
                                    onclick="return window.confirm('确认删除该用户吗？');">
                                    <img src="/Admin/Images/bluestyle/icodelb.gif" alt="删除" width="11" height="13" border="0" /></a>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
        <div style="text-align: right;">
            <form runat="server" id="pageForm24">
            <uc1:PageControl ID="pageCountrol" runat="server" />
            </form>
        </div>
        <div class="btudiv" style="padding-top: 15px; float: none; height: 22px; width: 93%;"
            name="printhidden">
            <ul style="width: 170px;">
                <li><a id="a1" class=" btuyellow_arrow" href="<%= pageUrl%>&action=download"
                    target="_blank"><span>下载报表</span></a></li></ul>
        </div>
    </div>
    <script type="text/javascript">
        //隔行变色
        jQuery(function ($) {
            $("#tbDataList tr:even").css("background-color", "#F9F9F9");
        });

        //删除用户（暂时未用）
        function DelUser(ID) {
            if (window.confirm("确定要删除该用户")) {
                window.location.href = '/Admin/SysConfig/DepartList.aspx?userid=' + ID;
                return false;
            }
            else {
                return false;
            }
        }
    </script>
</body>
</html>
